package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.MessageSettings;
import com.juyu.miliao.api.domain.UserMessageSettings;
import com.juyu.miliao.common.dataSource.tool.operate.Operate;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Auther: 卜加超
 * @Date: 2019/1/16 18:27
 * @Description:
 */
@Repository
public class MessageSettingsDao {
    @Autowired
    private SqlSession sqlSession;

    public List<MessageSettings> selectMessageSettingsList(int type) {
        return sqlSession.selectList("getMessageSettingsList",type);
    }


    public MessageSettings selectMessageSettingsById(int messageId) {
        return sqlSession.selectOne("getMessageSettingsById",messageId);
    }



}
